<?php
/**
 * Nadëb (Makú-Nadëb)
 * 
 * @author     Mateus Martins <mateusweb@gmail.com>
 * @copyright  Copyright 2010 mateusweb.com.br
 * @license    http://www.gnu.org/licenses/gpl.html | GPL
 * @package    Nadeb
 * @version    1.0.0
 */


/**
 * Class Nadeb_Loader_MountApp
 * Move os arquivos para rodar a area administrativa
 * 
 * @category   Nadeb
 * @package    Nadeb_Loader_MountApp
 * @copyright  Copyright 2010 mateusweb.com.br
 * @license    http://www.gnu.org/licenses/gpl.html | GPL
 */
class Nadeb_Loader_MountApp
{
    /**
     * Move os arquivos
     *
     * @return void
	 */
	public function __construct()
	{
		$files  = array(
			'/application/library/Nadeb/Components/Login/login.ini' => '/application/ini/admin/forms/login.ini',
			'/application/library/Nadeb/Components/Login/user.ini' => '/application/ini/admin/forms/user.ini'
			
		);
		
		foreach($files as $origem => $destino)
		{
			copy($_SERVER['DOCUMENT_ROOT'] . ROOT . $origem,$_SERVER['DOCUMENT_ROOT'] . ROOT . $destino);
		}
	}
}
